/**
 * @copyright Copyright(C) 2023, Fortior Technology Co., Ltd. All rights reserved.
 * @file      KeyScan.h
 * @author    Fortiortech Application Team
 * @date      2023-02-02
 * @brief     This file contains all the common data types used for Motor Control.
 */

 /* Define to prevent recursive inclusion ----------------------------------- */
#ifndef __KEY_SCAN_H_
#define __KEY_SCAN_H_
//int PowerChange;
//int BrakePin;

#define Key0 	          GP42
 

/* Exported types -------------------------------------------------------------------------------*/
typedef struct
{
	uint8 Key0Value;
	uint8 FlagKey0Press;
	int16 Key0PressCnt;

} 
KeyScanParam_TypeDef;

/* Exported variables ---------------------------------------------------------------------------*/
extern KeyScanParam_TypeDef KS;

/* Exported functions ---------------------------------------------------------------------------*/
extern void KeyInit(void);
extern uint8 KeyValue(void);
extern void KeyScan(void);
extern	uint8 Key0Value;
#endif

